﻿<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:controls="clr-namespace:Corina.Controls.Win;assembly=Corina.Controls.Win"
      xmlns:localViewmodel="clr-namespace:Corina.Addins.Msgtest"
      FontSize="14">
    <Page.DataContext>
        <localViewmodel:MsgtestViewmodel />
    </Page.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBox AcceptsReturn="True"
                 Text="{Binding Content,
                                Mode=TwoWay,
                                UpdateSourceTrigger=PropertyChanged}"
                 TextBlock.LineHeight="25"
                 TextBlock.LineStackingStrategy="BlockLineHeight"
                 TextWrapping="Wrap" />
        <controls:BusyIndicator IsBusy="{Binding IsBusy}" />
        <TextBlock Grid.Row="1"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Center"
                   Text="{Binding Result.Result,
                                  Mode=OneWay}" />
        <Button Grid.Row="1"
                HorizontalAlignment="Right"
                Command="{Binding SendCommand}"
                Content="send" />
    </Grid>
</Page>